package com.fortune.dao;

import com.fortune.dto.in.dSalesmanSetting.DSalesmanSettingListDto;
import com.fortune.dto.in.dUserMgt.DUserListDto;
import com.fortune.entity.DUserInfo;
import com.fortune.vo.dSalesmanSetting.DSalesmanSettingInfo;
import com.fortune.vo.dSalesmanSetting.User;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * Created by Administrator on 2018/5/24 0024.
 */
public interface DSalesmanSettingDao {

    List<DSalesmanSettingInfo> findUser(@Param("did")String did);

    List<User> findUsers(@Param("did")String did);

    List<DSalesmanSettingInfo> findJXSPros(@Param("did")String did,@Param("dto")DUserListDto dUserListDto);

    List<DSalesmanSettingInfo> count(@Param("did")String did);

    List<DSalesmanSettingInfo> findJXSPro(@Param("did")String did);

    List<DSalesmanSettingInfo> findZYPro(@Param("did")String did);

    DSalesmanSettingInfo findSetting(@Param("mid")String mid,@Param("mpid")String mpid,@Param("userId")String userId,@Param("did")String did);

    int addZYSalesmanSetting(@Param("mid")String mid,@Param("mpid")String mpid,@Param("userId")String userId,@Param("did")String did,@Param("monthNum")String monthNum);

    int editZYSalesmanSetting(@Param("mid")String mid,@Param("mpid")String mpid,@Param("userId")String userId,@Param("did")String did,@Param("monthNum")String monthNum);

    Float findUserNum(@Param("mid")String mid,@Param("mpid")String mpid,@Param("did")String did,@Param("userId")String userId,@Param("day")int day);
}
